package ru.study.thinkin.chapter14;

class GenericBase<T> {
	private T element;
	public void  set (T arg) {
		arg = element;
	}
	public T get() {
		return element;
	}
}

class Delived1<T> extends GenericBase<T>{}
class Delived2 extends GenericBase{}


public class ErasureAndInheritance {
	
	public static void main(String[] args) {
		Delived2 d2 = new Delived2();
		Object obj = d2.get();
		d2.set(obj);
	}

}
